package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Search {

    @JSONField(name = "result")
    public List<ResultDTO> result;
    @JSONField(name = "recommend")
    public List<RecommendDTO> recommend;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JSONField(name = "id")
        private long id;
        @JSONField(name = "autoId")
        private int autoId;
        @JSONField(name = "nickName")
        private String nickName;
        @JSONField(name = "gender")
        private int gender;
        @JSONField(name = "mobile")
        private String mobile;
        @JSONField(name = "serviceLevel")
        private int serviceLevel;
        @JSONField(name = "imgUrl")
        private String imgUrl;
        @JSONField(name = "birthday")
        private String birthday;
        @JSONField(name = "area")
        private String area;
        @JSONField(name = "sign")
        private String sign;
        @JSONField(name = "job")
        private String job;
        @JSONField(name = "height")
        private int height;
        @JSONField(name = "follow")
        private boolean follow;
        @JSONField(name = "balance")
        private double balance;
        @JSONField(name = "albums")
        private List<String> albums;
        @JSONField(name = "follower")
        private int follower;
        @JSONField(name = "favorites")
        private int favorites;
        @JSONField(name = "visitor")
        private int visitor;
        @JSONField(name = "vip")
        private boolean vip;
    }

    @NoArgsConstructor
    @Data
    public static class RecommendDTO {
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "autoId")
        private int autoId;
        @JSONField(name = "nickName")
        private String nickName;
        @JSONField(name = "gender")
        private int gender;
        @JSONField(name = "mobile")
        private String mobile;
        @JSONField(name = "serviceLevel")
        private int serviceLevel;
        @JSONField(name = "imgUrl")
        private String imgUrl;
        @JSONField(name = "birthday")
        private String birthday;
        @JSONField(name = "area")
        private String area;
        @JSONField(name = "sign")
        private String sign;
        @JSONField(name = "job")
        private String job;
        @JSONField(name = "height")
        private int height;
        @JSONField(name = "follow")
        private boolean follow;
        @JSONField(name = "balance")
        private double balance;
        @JSONField(name = "albums")
        private List<String> albums;
        @JSONField(name = "follower")
        private int follower;
        @JSONField(name = "favorites")
        private int favorites;
        @JSONField(name = "visitor")
        private int visitor;
        @JSONField(name = "vip")
        private boolean vip;
    }
}
